package com.online_vote_system.demo.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.online_vote_system.demo.mapper.AudienceMapper;
import com.online_vote_system.demo.vo.Audience;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AudienceServiceImpl extends ServiceImpl<AudienceMapper, Audience> implements AudienceService {
    @Autowired
    AudienceMapper audienceMapper;
    @Override
    public Audience getByEmail(String audEmail) {
        return audienceMapper.getByEmail(audEmail);
    }
}
